<template>
  <div class="zhengtirendu2 base-background-img">
    <div class="zi" @click="playFun(zi)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/2/zi.png">
    </div>
    <div class="ci" @click="playFun(ci)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/2/ci.png">
    </div>
    <div class="si" @click="playFun(si)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/2/si.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'zhengtirendu2',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        zi: {
          url: 'static/youxiao/pdf/zhengtirendu/zi.pdf',
          data: []
        },
        ci: {
          url: 'static/youxiao/pdf/zhengtirendu/ci.pdf',
          data: []
        },
        si: {
          url: 'static/youxiao/pdf/zhengtirendu/si.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.zhengtirendu2 {
  background: url(~@/assets/youxiaoxianjie/zhengtirendu/2/bg.png);
}
.zhengtirendu2 > div {
  position: absolute; 
}
.zi {
  top: 270px;
  left: 220px;
}
.ci {
  top: 275px;
  left: 550px;
}
.si {
  top: 273px;
  left: 860px;
}
</style>
